added global env, added env to each class eval