save three files, 1. groups 2. categories and 3. combined