improve pidgin contact parsing