added config file reading