replace DEBUG_SI with DEBUG and use dprintf