temporary files now written in JSON