regexes seem to work. simplified some tool dependencies