added reading of status bits