add a method to call custom API functions