fix env var parsing from settings