attributes are not part of types anymore, patch by James Woodyatt!