serialization with decorator