refactor scp template file