more work on extracting pages