main: add wait group to uploader