serialize private properties