it runs without errors for now
almost done, need to fix the links in the generated pages and the order of the paging