using more of the record functions, adding record_metadata creator