first version of InstanceHandler on ec2