editing and swapfile management