Fixes to conf loading, and plugins