file format changed to json, pi number added, logged