adds several pages, fixes errors