added debug util