updated to parse using ET instead of regexes.