chansrv: work on smartcard