fixed JAI imports, emf models, and other major emf issues