move scripts to top