another try, still having a redirect loop