add a service with sub-services