add log helper, cleaner dump from test script