reluctantlt move setup_trace before setup_plugins (we want it for use in plugins)