added PageWrapper and WordWrapper for safe page/word object lookup