Fix to make it easier to see whats going on in lookupConnection
Spacing
Reapplied refactoring from associations brnach split
Improvements- not finished