sometimes this doesn't work, and I'm working on moving it to a database rather than json files, so that should be better.