bug: writeSummary was not a function