adding some usefull debug
fixing #40
fix #39