debug output fix
added more debug output