fix log message format
fix logging
fix #39