trying to find better ways to parse emails