move scripts to separate file