added script and example