added functionality to keep track of downloaded pages