doc.dir is now in clean and init