fun with dom traversal and clean up