5051 remove upgradesstable v5

handle bootstrap compaction

Avoid checking for isbootstrap

Take #8

another fix for tests

fix