add logger
cosmetic change
add rescue for wrong message