add api call to be more robust