add attribute if it doesn't already exist (fixes #38)
Merge pull request #39 from cvan/new-attrs

add attribute if it doesn't already exist (fixes #38)