moved ST_WS_URL check to startup