fixes for ntuple production