fix possible readout lockup issue
both CSV and binary formats are supported