improved script to run presentation