made debugsystem work per entity