improve init script