replaced users rwlock with mutex