add a monad to process requests on a ws