main file and config file