fail if document not imported