upload/download bug fixes