avoid having references to mutex-protected Format object. Passing arguments by reference solves this
fix warnings