add redirect exception handler