update service definition after class change