renamed name to namespace, inject namespace to service when instanced