add parent file to map if deletion leaves it empty; all known bugs now squashed :D