added redirect detection
added redirect detection