fixes to ec2connection class and recommendation client/server