implemented entity debug system