getting config from file;create main,