added debugging for to fix #106