using generators to open files based on types, added jsons for taiex