added clearConfig function