more useful debug mechanism