import_document:fix dependencies no gui dependencies (to work on servers)