update redirect handler