add BML support and removed unneeded tmp in partitions