adding #api_methods to the client