getContacts implementation