reading settings from config file