added dprintf macro, finally