first running version with websockets