fixed some bugs and added websocket server