add json backup of classes.