continuing refactor of flashcards