initial set up and modified config file reading