load script improved