fatal bug found in esomTrain.pl