new scripts for running analysis