initial script parses out a valid page