fix up flag backend outputting