Rewrite some config parts