add support for adjustable FPS