change logging and email config