removed logging and fixed ws connect bug