- add cm without termination
- update cm with termination
remark: I'm not proud of this solution. It hust works and solves the task.