added quality flag from .kwa file