reorder of script run