automatically load dictionary file. explicitly close dictionary file after loading