moved scripts to separate file