small fixes to startup