set up book generation