add functions to api