proper handling of env variable