handling github redirects