added support for deserializing socket connections