rewriting settings