finished final, wrote files into subdirs from mongo