added aggregate exporting