Add better ip regex and remove some dependencies