improvement logging
add email notification sending