improved txt json files loader