fixed #73
oops forgot debug logging
fixed #72