added config writer