raise an exception if you the environment can't be loaded