add ip env support, resolves shipyard/shipyard-agent#37