moved scripts to the bottom