added support for printing emails