all smartcard functions implemented