made atomic lock optional