fix the partition building process
revise debug information
revise init_partition