add option for multiple runs and averaging results