added logging for redirects