added custom mapping to save a file