WS with error handling