fix upload exception due to moving print_debug inside TeSpeed class