Set role on task factories
Fix task serializers