refactor ec2Node