add FileHandler to handle writing and reading json format