separated config file reading into module