working on writing empty history.json file