add Tao's change to delete and journal file