add missing file
update chi code