improved provision script