updating base and switching to json format