using serializers for PrivatePub