refine param set & add env var & diff vm/html