set 'std' to service_type, when generating an instance.