move config vars to globals