added --check_donefiles to map_reads