fix so that upload works