more script tyding