added tool script for partitioning