more changes to classifier to support class based error training