changed so that plugins can take config params