fix some path/bucket issues
Delete file after successful upload
fix a few argument bugs