added WriteServiceError