moved scripts to a single script file