better email parsing