adjusting bug ion serializer for security