oh god, this is some kind of flashback to parse html with regexes (re-re-fixes #20)