have env read from json files if name is passed as string