version 2.1.0: protect against counter overflows