adding serializer for Agent