added rwmutex to Cfg