updating $config variable to pull from settings