wip: check env