reorder script variables a bit