added persistjson method to historymanager