updates to run locally and for web sockets