started implementing websockets, not properly working yet