added quick hack to save groups