fix version errors and reduce mismtach cases for interface types WIRE and PIPE