perhaps fixes wonky redirects after login