support for attributes (closes #7)