first tests for index, start constructing pages