removed sender class as was causing bugs with websockets