checking config file
refactoring