Fixed naming style (EnvCls -> env_class); take into account class-level env_class setting (probably redefined in subclass)