fix for check if it's a apicall