added frameskip option