moved config vars to top