refine upload command