added ws upgrade