upload works really well on emulator now but not on device