fix code not handling boxes that run in a private subnet