added inventory serializer