updated to read new format of ptime template