fix the feature_transform bug in pretraining; add alignment checking script