compaction scripts