fixing test message
adding error handling
caching whether or not we are on ec2