got rid of "EOF in map_ptr" problem. If a file shrinks mid transfer