fixed problems in EC2;
fixed image discovery and Chain Port;