added getRecords to library