add option to just run for n frames