changed how pending transactions are handled, flag set with reason in flag message