TODO implement card resolution