helper script for EC2 environment