added retries to WS