fix for #1
adding more debug information