add new feature : one file output by category now