just add mutex locking