adding logging to WS layer until it is more stable

to help with issue #572