updated cutflow and clean up bit pattern helpers