overwrite condig file instead of append