edit prune ebs script