fixed json and csv output categories