moved files out of lib
support for connections with the same entity type but different inbound and outbound paths