script reordering