added handlers for ec2 calls