some updates on recognition and training, mainly for speedup