add cancel command handling in rm and scd