- added spawn safety for files.