added isInsert boolean argument to saved emit