in your examples you only ever seem to pass a service class. do we definitely need to be able to do this by name as well?