run script improved