if baseUrl is not set (before setup) detect it automaticaly