init directory for document