update document uri handling