modify scripts to put them in the pipeline to do the whole work till machine learning part