modified precendence of ebook formats
exception handler around main call