missing assert on error
implement proper mongo pattern for file-processing