add attributes support
Merge pull request #29 from esteit/attributes

add attributes support