update main to use subjects, note problem with summary output