still debugging.

still debugging. The code still has bugs when multiple partitions are
used. But works smooth when one partition is used. Lot of sys outs.