updated master script