add methods to ws