setting up ws