move settings API under plugin_loaded() as required by ST3