fix precedence order for settings (with test).
everything but plugins are doc'd now, i think.