beg end from records, not docs
make docs refs to record keys