add file names to do blocks. fixes #5273