more script tuning