use commandline arg to decide how many frames to run