minor tweaks to t script