added fix for ip regex