some fixes to swapapp to make it work on school machines