major refactoring to websocket / field handler.