added support in rack app for setting redirects