Matthias, I believe the MSG_COUNT problem in lexer_v3.l is easy to fix. All that's needed is to require that the BOGO_LEX_LINE pattern match a whole line and that is done by adding a trailing dollar sign, i.e. I've made the modification and reverted the change in collect.c. David