added generator methods to persist and result messages