code chaged to take custom msg from ws_referee