issue366 may now be fixed

but lots of debugging info still produced