compile env; fixing names