Revert "Revert "add methods to WS""

This reverts commit 1b56065ba31f687e8ab3293ec08450c9a3b0507f.