style and bugfix for emailer