Added  env var and -host flags