added track id to json2flat.py