added methods to api