replaced id with uid to avoid confusion when using the RecordX methods