implement my own debug flag, ADT's one is so unreliable