add debug mode to config
add debug to config