move scripts into body