fixes to startup