created static method for obtaining config file