added check for configuration file setting in file main.py