added RMDocumentWindow