added internal refs to documents