prepare init script