fix if auth is not necessary