adds working isApiCall()