compatible with AR threadsafe branch