moved configuration file check to class Configuration