updated to use html5lib