fixed environment; fixed arguments in jsonMerge