change gen to return rss xml instead of writing file