move scripts to head