dbg: threading for mp calculation