added c and dm commands