too clever by half in extract-transform-globals