A quick hack to source globals from env. Fixes #16.