expose connection as interface