move scripts to a separate file