mutexes to protect Repository vectors and init function has been added