updated with websockets basic setup