another attempt to make the email upload work