added a simple api call