minor tweaks for getting it to work with ebooks
some tweaks