add support for env