added support for timed out sockets, UI support next