fixes to attribute addition and inheritance