modified redirects within code