added some more debug info to the "EOF in map_ptr" error message to