some bugs fixed, but not all of them

can add multiple cards from library now