better file naming. dump raw file if extraction has failed.