improved specs and added result serializer