add error flag to dac