moved scripts to its own file