adds RedirectWith utility function