sync flags modification to output