added ability to render multiple pages to string