switched to curl for file upload