convert more vars to global exports