fix: make getContacts function public