another attempt at fixing uploads