setup config file code