improved setup_tool