added firstWs and restWs utility methods