add working check of env