add logging of upload errors