added substitution_mode attribute to add_config action