refactor
unguarded logs also warning email