now WalletEngine inherits EventEmitter