loading main config from file