misspelled function name "cw_tmpl"? in line: PRO tmpl_set_value, id, value