adds debugging