updated local script to extractFeatures