moved config var to top of file