chansrv: work on smart card