prepareRequestHandler