init script fixes