Use create-file function in namespace generator