change ConnectionConfig to Interface