made atomic locks init correctly