wrapped ws in thread and updated readme