re-implement derivating cards #404