added an even more general-case HTKCallback custom callback wrapper