fix conf loading in main