moved email headers to their own class for more flexibility