add some dbg code