more fixes. diagnostic info printing for malformedbytes bug etc.