tried a different way for the ec2 to run