add methods to api