enhancing emf code works for plain attributes