added redirect url support