debugged certain issues for script 0, not all.  Socket doesn't always close?