updated based on the config file