move --create-directory to proper section