* use atomic_int and atomic_bool