improve EPUB generator