updated to use ebs