add asynchronous check on api calls