updated generate features script