added lock-free mode