plugin: make settings a var, not a function.