moved scripts to top