fix parsing of interfaces