improving example scripts