also trim the IP