removed extra variable for config, write out config by default