added script example for autorun