serialize each domain