added elevated file swapping