move config vars to globals
move config vars to globals