moved config to global scope