use getenv() instead of environ[]