replace SpoonFile and SpoonDirectory in the backend