add basic folding for interfaces