added better debug