added support for .attributes