configure if load config based on mode