fixed a bug in LocalLM, adding more debugging messages