add script vectorize and add run function to the features