cleaning up aground RTE and share cruft in head of pages