adding errbit support