small changes to genFeatures