added more functions to api