correct handling of service_types