fixes to init script