unificate client and server process implementation to (Pipe)=>Future[Any]