added some basic framework code from jumpnrun example