Now I use ImplicitParams instead of a monad to ensure sockets initialization.