started to implement debug cm