renaming latest records
api for reading from device