debugging multipage scanning