introduce scheduler to avoid error in ntupler