fixed bugs in example scripts in bin