cstemplate: remove flags before adding them

and add Hh to higher than hops.