fixed frame-counter setting, improved formatting