check env variable first