first draft of an interface to encapsulate both connection types