separate flipFlap for different programs

PM and Quark templates are different, so separate the flipFlap method
for each to make it more accurate