switch for request object or not