refactoring allServices to make it easier to filter services by name.