basic infrastructure for page analysis