added remap to save files requiring root permissions