moved plugin logic loading into plugins_loaded hook to allow settings override