modified fern api for env, call with array instead of json