use script for setting properties
duration instead of runningtime