cleaning up epub preparation