use eml.  Move controller to own file