fixed iface logic