eliminate default Module global
tidy up defensive environment initialization