connections: Introduction of generic API