updated a number of functions to use new API