made target framerate configurable
minor refactoring