renamed API related functions to match API names