turns out we also have to exclude inner classes