improve example scripts