updated with email appender