all the content for the first pathfinder session, and a boatload of features and hacks: refactoring requried