added commented debug script. legacy websockets is working!