check for request object in response or global variable