move scripts to body