incrementing dump ids and choose correct dump id in global planner