split scripts into two