improve log export

issues: #11