changed urls to end-of-document ref format