checkpoint: start reference counter refactoring