Simplify page parsing. Remove unused libs