# move metadata upload logic to the separate file