make part_block independent of current_ir_graph