added scripts and an example