document references detached