whenmodified: add option -C for clear