clean up the read registers in pq example