updated how configuration is passed in