fix issues with mode/lib/tool manager, require restart msg, also #1782