using request object in the handler