add checking for sane environment name