build emo dict from dir