added logging for env