added redirect scheme support