added debug utility