changed script load sequence