switch to config vars