output file needs env variable set correctly