switch from OnHandleRequest to OnParseDocument