scripts rearranged