added callback to cleanup old revisions