refactoring to use lazy-load attributes from current Env