make redirects work