Various fixes

- make card configurable
- actually reuse the file