added debig option