take interfaces into account when ensuring correct cardinality