Rely less on jsonfile