handling the requests in requesthandlers