rewrite configuration parser