less hardcoding of IPs to get it to work on AWS