add emms and locales support.