add debug process, and other things