add logging
use logging
add post mortem
use logging. better options format
add note about logging