set debug to 0 by default