added fallback to bosh if WS is not supported