add some stuff to make this work without ec2