def getFileHandler(self, file):
        #by default execute apdu in card 0
        cards = [self.cardsDict[0][MAIN_INTERFACE]]

        for cardDict in self.cardsDict:
            if cardDict == self.cardsDict[0]:
                #cardDict already in cards
                continue
            card = cardDict[MAIN_INTERFACE]
            if file in card.routingAttr.filesCommon:
                cards.append(card)
            elif file in card.routingAttr.filesReplaced:
                return [card]
        return cards