separating scripts into script file