add support for serializing subset of attributes - issue #100