naming, typos, potential race condition in detector base class