Revert "remove getenv() function."