hook intto api requests, abort if pending