fixes
compile optim
compaction framework