moved config work into configparser file