preparing init script