factory to attributes.unpack API