bugfixes, debugging, multi-chapter cards, unittests