added optional fps counter