add remaining document references