1) add the env and domain illegle checking