use System.get in ModuleTransformer and fix scoping