adding external dictionary functionality