reordering new smartcard instruction to prevent smartcard corruption