add support for setting build environment