helper script for KOreader