adds custom attributes

Close #257