impl. compressFully
fix bugs
fix bugs
add debug scripts