changed which stuff is protected by mutex