delete ENVTYPE_module
use AutoPtr to implement Module