all but the upload works fine