fix message.py to work with the parser, also disable debug mode