add RWMutex around service instance
finish service hierarchy