updated apply_featurefile script