use env variables if present