support for return values on API calls