client and server share the same connection class