fixes to atom init