modify & add setting for ec2