avoid race where multiple threads could get started.