Add support for mutil-enviroment.