xml fix, socket color fix, possible error ...

1 fix, error 2 is almost fixed.  Can't recreate error 4 yet