switched config to variables