fix async_request function