added more debug info

the next function is the problem i guess