deserialization of Connection