fixing example scripts