added logging for all ec2 calls