merged scripts into one