bug fixes to tracing script from ground zero of AIBS computer