make compactor work with snapshots