improved/fixed search for contacts API