improving flextagbuilder