commit before uploading