added some FPS code for testing