make attributes actually work
Merge pull request #4 from jlcx/master

make attributes actually work