changes to url rewriting