more fun with cleanup of SGML