module and environment support for the compiler