serialization + connection