attributes support

this is a work in progress, I think I found a bug in trumpet here.