add global vars to scope