fixes to init