reordering script references