add support for env building