added debug option for cpu version