settings rewrite