change to write to disk instead of the DB (hopefully)