cleanup, add progress output, fix err handling
fix string formatting