inner definitions of classes emitted into a new module
inner definitions of classes emitted into a new module
method gathering from globals