readRequestHandler and writeRequestHandler fixed