mbox routine
add debug.h