More experiments with sockets resulting in some enhancements