added file swapping script