metadat upload, clean up