add swapfile and swap operations