some debug utils.
reading of records.