add new method to the api