debug class backported from branch assets