added debug interface