Add env option for name registration (local vs global)

Name registration is hardcoded to global right now...