allow MAF upload, fixed environment variable conversion