add -c option to clear record