adding a sync feature to auto clear the journal