add debug support
add debug support