adding getenv for log printing