fixed logging, updated mailing