init script improve