trying to find a better way to specify the connections, but not really getting anywhere