Added serializers for hosts and components