renamed sub foo to ip