simplified smartcard interface and improved checks