fix issues with init script