moved scripts to head