split and fixed init script